package main

import "fmt"

type chainType int

const (
	None chainType = iota
	CPU
	GPU
)

func (c chainType) string() string {
	switch c {
	case None:
		return "None"
	case GPU:
		return "gpu"
	case CPU:
		return "cpu"
	}
	return "N/A"
}

func main() {
	// // 输出CPU的值和以整形方式显示
	fmt.Printf("%s,%d", GPU, GPU)
}
